package com.mp.approvalreq.entity;


import org.apache.commons.lang3.StringUtils;

/**
 * 条件因子
 */
public class Condition extends Template {
	/**
	 * 搜索关键词
	 */
	private String keywords;
	/**
	 * 搜索出来的相关的String
	 */
	private String relevanceStr;
	/**
	 * 搜索的开始时间
	 */
	private String searchStartTime;
	/**
	 * 搜索的结束时间
	 */
	private String searchEndTime;
	/**
	 * 搜索类型：1.在抄送我的未归档的里搜，2.在我已归档的里搜，3.搜索某人申请的，4.搜索某人处理的，5.搜索相关申购，6.搜索相关外出，7.搜索相关请假
	 */
	private Integer searchType;
	/**
	 * yyyy-MM
	 */
	private String currentMonth;
	/**
	 * yyyy-MM-dd
	 */
	private String currentDays;
	/**
	 * 筛选的当前的审批状态 1，已批准，3已驳回，0审批中，2已归档, -2
	 */
	private String currentStatus;
	/**
	 * 申请人：0，全部，其他，具体的申请人
	 */
	private String searchRange;
	/**
	 * yyyy-MM,yyyy-MM,yyyy-MM
	 */
	private String currentMonths;
	/**
	 * 使用同意时间还是申请时间，0是同意时间1是申请时间，默认是同意时间
	 */
	private Integer confirmTimeOrCreateTime;


	public Integer getConfirmTimeOrCreateTime() {
		return confirmTimeOrCreateTime;
	}

	public void setConfirmTimeOrCreateTime(Integer confirmTimeOrCreateTime) {
		this.confirmTimeOrCreateTime = confirmTimeOrCreateTime;
	}

	public String getCurrentDays() {
		return currentDays;
	}

	public void setCurrentDays(String currentDays) {
		this.currentDays = currentDays;
	}

	public String getCurrentMonths() {
		return currentMonths;
	}

	public void setCurrentMonths(String currentMonths) {
		this.currentMonths = currentMonths;
	}

	public String getSearchRange() {
		return searchRange;
	}

	public void setSearchRange(String searchRange) {
		this.searchRange = searchRange;
	}

	public String getCurrentStatus() {
		return currentStatus;
	}

	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		if (StringUtils.isEmpty(keywords) || StringUtils.isEmpty(keywords.trim())) {
			this.keywords = null;
		} else {
			this.keywords = keywords;
		}
	}

	public String getRelevanceStr() {
		return relevanceStr;
	}

	public void setRelevanceStr(String relevanceStr) {
		this.relevanceStr = relevanceStr;
	}

	public String getSearchStartTime() {
		return searchStartTime;
	}

	public void setSearchStartTime(String searchStartTime) {
		this.searchStartTime = searchStartTime;
	}

	public String getSearchEndTime() {
		return searchEndTime;
	}

	public void setSearchEndTime(String searchEndTime) {
		this.searchEndTime = searchEndTime;
	}

	public Integer getSearchType() {
		return searchType;
	}

	public void setSearchType(Integer searchType) {
		this.searchType = searchType;
	}

	public String getCurrentMonth() {
		return currentMonth;
	}

	public void setCurrentMonth(String currentMonth) {
		this.currentMonth = currentMonth;
	}

}
